transaction

open suspend override fun <R> transaction(name: String, block: suspend (context: MlsCoreCryptoContext) -> R): R

Runs a block of code inside a CoreCrypto transaction.

Return

result of the block

Parameters

name

optional name of the transaction (used for logging)

block

transaction block executed with CoreCryptoContext